package com.whcoding.mapstruct.mapper;


import com.whcoding.mapstruct.dto.OrderDto;
import com.whcoding.mapstruct.po.OrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;


@Mapper(uses = {MemberMapper.class,ProductMapper.class})
public interface OrderMapper {
    OrderMapper INSTANCE = Mappers.getMapper(OrderMapper.class);

    @Mapping(source = "memberVO",target = "memberDto")
    @Mapping(source = "productList",target = "productDtoList")
    OrderDto toDto(OrderVO orderVO);
}
